package soen343.domain;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Quiz {
	private List<Question> _questions;
	private String _name;
	
	public Quiz(String name) {
		_name = name;
		_questions = new ArrayList<Question>();
	}
	
	public void addQuestion(Question question) {
		_questions.add(question);
	}
	
	public Iterator<Question> getQuestionIterator() {
		return _questions.iterator();
	}
	
	public List<Question> getQuestionList() {
		return _questions;
	}

	public String getName() {
		return _name;
	}
}
